<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <h1>hello  jsp </h1>
    <button>添加</button>
<table border="1px" cellspacing="0" width="100%">
    <tr>
        <th>id</th>
        <th>username</th>
        <th>city</th>
        <th>操作</th>
    </tr>

    <c:forEach items="${users}" var="user" >
        <tr>
            <td>${user.id}</td>
            <td>${user.username}</td>
            <td>${user.city}</td>
            <td>
                <a href="#">编辑</a>
                <a href="#">删除</a>
            </td>
        </tr>
    </c:forEach>
</table>

</body>
</html>
